import 'package:backend.core/core/domain/entities/api/web/api_web_bank_card_info.dart';
import 'package:backend.core/core/domain/entities/api/web/api_web_bank_card_type.dart';
import 'package:equatable/equatable.dart';

class ApiYookassaBankCardInfo extends Equatable implements ApiWebBankCardInfo {
  const ApiYookassaBankCardInfo({
    required this.last4,
    required this.expirationMonth,
    required this.expirationYear,
    required this.cardType,
  });

  @override
  final String last4;

  @override
  final String expirationMonth;

  @override
  final String expirationYear;

  @override
  final ApiWebBankCardType cardType;

  @override
  List<Object?> get props {
    return [
      last4,
      expirationMonth,
      expirationYear,
      cardType,
    ];
  }
}
